package cn.lili.controller.system.goods_auth;

import cn.lili.common.utils.ResultUtil;
import cn.lili.common.vo.ResultMessage;
import cn.lili.modules.goods_auth.service.GoodsAuthLogService;
import cn.lili.modules.system.entity.dto.AuthSearchParams;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Api(tags = "授权日志管理")
@RequestMapping("/system/auth_log")
@Slf4j
public class GoodsAuthLogController {

    @Resource
    private GoodsAuthLogService goodsAuthLogService;

    @ApiModelProperty(value = "日志列表")
    @GetMapping("/page")
    public ResultMessage<Object> logPage(AuthSearchParams searchParams){
        return ResultUtil.data(goodsAuthLogService.logPage(searchParams));
    }
}
